package com.china08.yxyapi.entity.db.live;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 直播课目录
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_live_catalog", catalog = "yxy_live")
public class YxyLiveCatalog extends BaseEntity {

	@Column
	private String name;// 目录名称

	/**
	 * 分类级别 1--一级目录 2--二级目录 3--三级目录
	 */
	@Column
	private Integer level;

	/**
	 * 父级id, 当是一级目录是 pid为0,
	 */
	@Column
	private String pid;

	/** 排列序号 */
	@Column(name = "order_num", nullable = false, columnDefinition = "INT(11) DEFAULT 100")
	private Integer orderNum = 20;

	@Column(columnDefinition = "varchar(32) comment '此目录所属的学校或者教育局' ", nullable = false)
	private String schoolId;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getPid() {
		return pid;
	}

	public void setPid(String pid) {
		this.pid = pid;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public String getSchoolId() {
		return schoolId;
	}

	public void setSchoolId(String schoolId) {
		this.schoolId = schoolId;
	}

}
